import * as types from '../actions/types';

/*
教师信息
默认都是 undefined
{
	username : 
	school_id : 
	school_name : 
}
*/
export default function info(info = {}, action) {
  switch (action.type) {
  	case types.SET_INFO:
  		return Object.assign({}, info, action.v); //action.v是一个对象
  	case types.CLEAR_INFO:
  		return {};
  	default:
  		return info;
  }
}  